import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.use(ElementUI);
import * as socketApi from './api/wssocket';
Vue.prototype.$wsApi = socketApi;
import httpRequest from '@/api/httpRequest';

Vue.prototype.$http = httpRequest // 将 http 请求绑定到 Vue 原型上，可以在任何组件中访问
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
